package com.four.project.dao;

import com.four.project.pojo.User;
import com.four.project.vo.UserReq;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description
 * @Author 梯子君(xie)
 * @Data 2020/7/615:05
 */
@Repository
public interface UserMapper {
    //查询所有
    List<User> selectAll();
    //根据id查询
    User selectById(Integer id);
    //增加
    int addOne(User user);
    //根据id删除
    int deleteById(Integer id);
    //修改
    int updateOne(User user);
    //根据email查询
    User selectByEmail(String email);
}
